package com.lh;

import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

/**
 * @program: foodie-dev
 * @description:
 * @author: LH
 * @create: 2022-05-31 11:14
 **/
//打包 war 增加war启动类
public class WarApplication extends SpringBootServletInitializer {

    //指向Application这个springboot启动类
    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(Application.class);
    }
}
